% Pandoc PDF header: fix figure placement and image sizing for Chinese docs
% - Lock figures at the original position (non-floating)
% - Scale images to page width with aspect ratio preserved
% - Improve line breaking to reduce overfull hboxes

\usepackage{float}
\floatplacement{figure}{H}
\floatplacement{table}{H}

\usepackage{graphicx}
\setkeys{Gin}{width=\linewidth,keepaspectratio}

% Reduce overfull lines
\setlength{\emergencystretch}{3em}

% If Pandoc sets CJK fonts via xeCJK/fontspec, this header complements them.
